<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/4/4
 * Time: 15:21
 */

use Biz\service\trade\ShopCourier as sShopCourier;

class CourierListAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $isRefund = (int)$this->getRequest()->getQuery('is_refund', 1);
        $data = sShopCourier::getCourierList($isRefund);
        $this->setSuccess($data);
    }
}